package model.comparator;

import java.util.Comparator;

import model.Employee;

public class EmployeeGenderComparator implements Comparator<Employee>
{
	@Override
	public int compare(Employee e1, Employee e2)
	{
		boolean gender1 = e1.isGender();
		boolean gender2 = e2.isGender();
		if ( !gender1 && gender2 )
		{
			return 1;
		}
		else if ( gender1 && !gender2 )
		{
			return -1;
		}
		else if (gender1 == gender2)
		{
			return 0;
		}
		return 0;
	}
}
